import request from "./index.js";

export const httpForm = (url,data={}) => {
    return request.request({
      method: "POST",
      url: url,
      data
    });
  };

export const httpJson = (url, data={}) => {
  return request.request({
    url,
    method: "post",
    data,
    headers: {
      "Content-Type": "application/json",
    },
  });
};
